package com.example.demo.Bean;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class Student implements Serializable {

    @ExcelProperty(value = "学号",index = 0)
    @TableId(type = IdType.INPUT)
    private String studentUid;

    @ExcelProperty(value = "姓名",index = 1)
    private String name;

    @ExcelIgnore
    private String password;

    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ExcelIgnore
    private Integer isDelete;

    @ExcelProperty(value = "年级专业班级",index = 2)
    private String classes;

    @ExcelIgnore
    private String email;

    @TableField(exist = false)
    private Double totalScore = 0.0;

}
